package com.sangmo.fts.process.receivable.interfaces;

import com.sangmo.boot.framework.plugin.dataview.def.meta.DataField;
import com.sangmo.boot.framework.plugin.dataview.def.meta.DataView;
import com.sangmo.fts.common.IConstants;
import com.sangmo.fts.process.inventory.interfaces.TrainingIdRequest;
import com.sangmo.fts.process.receivable.model.RpfContract;

import java.util.Date;
import java.util.List;

@DataView(value = RpfContract.class)
public class RpfContractCreation extends TrainingIdRequest {

    private Long buyerId;

    private Long sellerId;

    private Date signDate;

    private Date payDate;

    private Long buyerConfirmDoc;

    @DataField(value = IConstants.DATA_TYPE.COLLECTION, required = true)
    private List<RpfContractItemCreation> contractItems;


    public Long getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(Long buyerId) {
        this.buyerId = buyerId;
    }

    public Long getSellerId() {
        return sellerId;
    }

    public void setSellerId(Long sellerId) {
        this.sellerId = sellerId;
    }

    public Date getSignDate() {
        return signDate;
    }

    public void setSignDate(Date signDate) {
        this.signDate = signDate;
    }

    public Date getPayDate() {
        return payDate;
    }

    public void setPayDate(Date payDate) {
        this.payDate = payDate;
    }

    public Long getBuyerConfirmDoc() {
        return buyerConfirmDoc;
    }

    public void setBuyerConfirmDoc(Long buyerConfirmDoc) {
        this.buyerConfirmDoc = buyerConfirmDoc;
    }

    public List<RpfContractItemCreation> getContractItems() {
        return contractItems;
    }

    public void setContractItems(List<RpfContractItemCreation> contractItems) {
        this.contractItems = contractItems;
    }
}
